From: Jonas Dreßler Date: Fri, 24 Jun 2022 14:37:00 +0000 (+0200) Subject: appDisplay: Apply overshoot threshold to the left as well X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~189 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=150866d0bfb249faab6c41735b8ec48f05f8d557;p=gnome-shell.git appDisplay: Apply overshoot threshold to the left as well We also want to apply this threshold when overshooting to the left, not only to the right. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4774 Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index db87c063f..3fa1451d0 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -851,7 +851,9 @@ var BaseAppView = GObject.registerClass({ const [gridWidth, gridHeight] = this.get_transformed_size(); const vertical = this._orientation === Clutter.Orientation.VERTICAL; - const gridStart = vertical ? gridY : gridX; + const gridStart = vertical ? + ? gridY + DRAG_OVERSHOOT_THRESHOLD + : gridX + DRAG_OVERSHOOT_THRESHOLD; const gridEnd = vertical ? gridY + gridHeight - OVERSHOOT_THRESHOLD : gridX + gridWidth - OVERSHOOT_THRESHOLD;